-- GENERATED SPELL FOR [Qiraji Champion] --


function spell0_15252(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15252', 608, 1)
end

function spell1_15252(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15252', 6315, 1)
end

function spell2_15252(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(11130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15252', 584, 1)
end

function spell3_15252(pUnit, Event) --@Vengeance,Self--
pUnit:FullCastSpellOnTarget(25164,pUnit)
pUnit:RegisterEvent('Sorts_15252', 30328, 1)
end

function Sorts_15252(pUnit, Event)
local choix_sorts_15252 = math.random(0, 3)
if choix_sorts_15252 == 0 then
pUnit:RegisterEvent('spell0_15252', 1, 1)
end
if choix_sorts_15252 == 1 then
pUnit:RegisterEvent('spell1_15252', 1, 1)
end
if choix_sorts_15252 == 2 then
pUnit:RegisterEvent('spell2_15252', 1, 1)
end
if choix_sorts_15252 == 3 then
pUnit:RegisterEvent('spell3_15252', 1, 1)
end
end

function mob15252_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15252', math.random(1500, 3000), 1)
end

function mob15252_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15252_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15252_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15252, 1, 'mob15252_Action')
RegisterUnitEvent(15252, 2, 'mob15252_Leave')
RegisterUnitEvent(15252, 3, 'mob15252_Kill')
RegisterUnitEvent(15252, 4, 'mob15252_Die')
